POST
/
tools
/
openapi
/
{tool_id}
/
execute
curl --request POST \
  --url https://agent-prod.studio.lyzr.ai/v3/tools/openapi/{tool_id}/execute \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{}'
{}

Endpoint

POST /v3/tools/openapi/{tool_id}/execute

Description

Executes a specific OpenAPI tool using the provided parameters.

Authentication

API Key (x-api-key) in the header.

Request Parameters

ParameterTypeDescription
tool_idStringThe ID of the tool to execute.
pathStringThe API path to call.
methodStringThe HTTP method to use (GET, POST, etc.).

Curl Request

curl -X POST "https://agent-prod.studio.lyzr.ai/v3/tools/openapi/{tool_id}/execute?path={path}&method={method}" ^
-H "accept: application/json" ^
-H "content-type: application/json" ^
-H "x-api-key: sk-default-REDACTED"

Response

Returns the result of the API tool execution.


Authorizations

x-api-key
string
header
required

Path Parameters

tool_id
string
required

The ID of the tool to execute.

Query Parameters

path
string
required

The API path to call.

method
enum<string>
required

The HTTP method to use (GET, POST, etc.).

Available options:
GET,
POST,
PUT,
DELETE,
PATCH,
OPTIONS,
HEAD

Body

application/json · object

Optional body content for the API call (depending on method)

The body is of type object.

Response

200
application/json

API tool executed successfully

The response is of type object.